<% if current_user.present?%>
<%if @topic.user_id == current_user.id or admin?(current_user) %>
	<span class="pull-right">
		<%= link_to  raw('<i class="fa fa-pencil" ></i>'),edit_topic_path(@topic.id)%>
	</span>
<%end%>
<% if admin?(current_user)%>
	<%if @topic.excellent?%>
		<%=link_to raw('<i class="fa fa-diamond" style="color: red" ></i>取消加精'),unsuggest_topic_path,method: :post %>
	<%else%>
		<%=link_to raw('<i class="fa fa-diamond" ></i>加精'),suggest_topic_path,method: :post %>
	<%end%>
<%end%>
<%end %>

